module.exports = class extends think.Model {
    async getTopmenu() {
      const where = {};
      where.hide = 0;
      where.pid = 0;
      if (think.config('setup.DEVELOP_MODE')==1) { // 是否开发者模式
        where.is_dev = 0;
      }
      const menu = await this.where(where).order('id asc').select();
      return menu;
  }
}
